package com.k2data.k2app.domain.po.v1;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@Table(name = "contacts")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Contacts implements Serializable {

    @Transient
    private static final long serialVersionUID = -819584920179009962L;

    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    //设备
    private Long customerId;
    //名称
    private String name;
    //性别
    private String sex;
    //公司
    private String companyName;
    //部门
    private String departmentName;
    //电话
    private String phoneNum;
    //微信
    private String wechat;
    //qq
    private String qqNum;
    //单位电话
    private String businessNum;
    //住宅电话
    private String homeNum;
    //头像
    private String imageUrl;
    //头像
    private String importance;
    //邮箱
    private String email;
    //传真
    private String fax;
    //备注
    private String remark;
    //创建者，当前登陆用户
    private String creator;
    //更新者
    private String updator;

    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

    @Transient
    private String isSelf;
}